build: fix dependency tracking for preprocessed files
authorJan Beulich <jbeulich@suse.com>
Mon, 8 Jun 2020 08:25:40 +0000 (10:25 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 8 Jun 2020 08:25:40 +0000 (10:25 +0200)
commit75131ad75bb3c91717b5dfda6881e61c52bfd22e
tree8bcb7fa09501cf1314bafb63d9680953386985de
parent51ca66c37371b10b378513af126646de22eddb17
build: fix dependency tracking for preprocessed files

While the issue is more general, I noticed that asm-macros.i not getting
re-generated as needed. This was due to its .*.d file mentioning
asm-macros.o instead of asm-macros.i. Use -MQ here as well, and while at
it also use -MQ to avoid the somewhat fragile sed-ary on the *.lds
dependency tracking files. While there, further avoid open-coding $(CPP)
and drop the bogus (Arm) / stale (x86) -Ui386.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Julien Grall <jgrall@amazon.com>
Release-acked-by: Paul Durrant <paul@xen.org>
xen/Rules.mk
xen/arch/arm/Makefile
xen/arch/x86/Makefile